package com.bd.rj.backstage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bd.rj.common.entity.Resume;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;
@Mapper
public interface ResumeMapper extends BaseMapper<Resume> {
    @Select("SELECT u.*, r.* FROM user u LEFT JOIN resume r ON u.id = r.uid WHERE u.id = #{id}")
    List<Map<String,Object>> queryresume(@Param("id") Long id);
}